package com.yida.gwj.deposit.enums;

/**
 * 缴存业务管理  业务类型枚举
 *
 * @Author: PPV
 * @Date: 2023-02-14
 */

public enum GwjDepositBusinessBizTypeEnum {

    /**
     * 退多
     */
    REFUND("1", "退多"),
    /**
     * 补差
     */
    COMPLETE("2", "补差");

    private final String code;
    private final String info;

    GwjDepositBusinessBizTypeEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static GwjDepositBusinessBizTypeEnum getByCode(String code) {
        for (GwjDepositBusinessBizTypeEnum item : values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }


}
